# -*- coding: utf-8 -*-
#Boa:Frame:Frame1

import wx

def create(parent):
    return Frame1(parent)

[wxID_FRAME1, wxID_FRAME1BUTTON1, wxID_FRAME1PANEL1, wxID_FRAME1STATICTEXT1, 
 wxID_FRAME1STATICTEXT2, wxID_FRAME1TEXTCTRL1, wxID_FRAME1TEXTCTRL2, 
] = [wx.NewId() for _init_ctrls in range(7)]

class Frame1(wx.Frame):
    def _init_ctrls(self, prnt):
        # generated method, don't edit
        wx.Frame.__init__(self, id=wxID_FRAME1, name='', parent=prnt,
              pos=wx.Point(497, 284), size=wx.Size(1095, 653),
              style=wx.DEFAULT_FRAME_STYLE, title=u'\u5f55\u5165\u6761\u7801')
        self.SetClientSize(wx.Size(1095, 653))

        self.panel1 = wx.Panel(id=wxID_FRAME1PANEL1, name='panel1', parent=self,
              pos=wx.Point(0, 0), size=wx.Size(1095, 653),
              style=wx.TAB_TRAVERSAL)

        self.staticText1 = wx.StaticText(id=wxID_FRAME1STATICTEXT1,
              label=u'\u7528\u6237\u540d', name='usernameText',
              parent=self.panel1, pos=wx.Point(336, 168), size=wx.Size(67, 16),
              style=0)

        self.staticText2 = wx.StaticText(id=wxID_FRAME1STATICTEXT2,
              label=u'\u5bc6\u7801', name='passwordText', parent=self.panel1,
              pos=wx.Point(336, 232), size=wx.Size(67, 16), style=0)

        self.textCtrl1 = wx.TextCtrl(id=wxID_FRAME1TEXTCTRL1, name='textCtrl1',
              parent=self.panel1, pos=wx.Point(432, 168), size=wx.Size(104, 24),
              style=0, value='')

        self.textCtrl2 = wx.TextCtrl(id=wxID_FRAME1TEXTCTRL2, name='textCtrl2',
              parent=self.panel1, pos=wx.Point(432, 232), size=wx.Size(80, 22),
              style=0, value='')

        self.login = wx.Button(id=wxID_FRAME1BUTTON1, label=u'\u767b\u9646',
              name='loginBtn', parent=self.panel1, pos=wx.Point(368, 304),
              size=wx.Size(85, 27), style=0)
        self.login.Bind(wx.EVT_BUTTON, self.OnButton1Button,
              id=wxID_FRAME1BUTTON1)

    def __init__(self, parent):
        self._init_ctrls(parent)

    def OnButton1Button(self, event):
        print u'dsadsa'
        print u'哇卡卡'
        event.Skip()


